package com.example.capsule_netty.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.capsule_netty.bean.FunctionBean;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @Author: zhuzhiming
 * @Date: 2022/5/15 21:11
 */
public interface FunctionMapper extends BaseMapper<FunctionBean> {


    @Select(value = "select * from function where room_name = #{roomName}")
    List<FunctionBean> getFunctionsByRoomName(String roomName);
}
